const merge = require("webpack-merge");
const common = require("./webpack.common.js");
const CleanCSSPlugin = require("less-plugin-clean-css");


module.exports = merge(common, {
    devtool: 'inline-source-map',
    devServer: {
    	contentBase: './dist'
    },
    mode: "development",
    module: {
    	rules: [
            {
        		test: /\.less$/,
        		use: [
        			'style-loader',
        			'css-loader',
        			{
        				loader: 'less-loader',
        				options: {
        					sourceMap: true,
        				}
        			}
        		]
            }
    	]
    }
   

});
